<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
session.setAttribute("visitPath",basePath);
%>
<html>
<head>
<title><s:text name="systemName"/></title>
<link href="css/heaq/pas.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/validator.js"></script>
<script type="text/javascript" src="js/global.js"></script>
<script type="text/javascript" src="js/jquery-1.4.js"></script>
<script type="text/javascript">
function refreshSerialNum(){
	document.getElementById('serialNum').src = "<%=request.getContextPath() %>/img.jsp?see="+Math.ceil(Math.random()*10000000000);
}

function chongTian(){
	$("#account").val("");
	$("#password").val("");
	$("#rankInput").val("");
	refreshSerialNum();
}
function validLogin(){
	if($("#account").val()==''||$("#password").val()==null||$("#rankInput").val()==''){
			alert("请添加完全信息");
			return false;
		}
	return true;
	
}
</script>
</head>
<body id="log">
<form action="loginAction.action" name="loginForm"  onSubmit="return validLogin();" method="post">
<input type="hidden" name="code" value="-100"/>
<input type="hidden" name="paramMap.logColumn" value="s_userLoginAccount,currentDate"/>

<div id="logContent">
  <div id="logInfo">
    <h3>用户登录</h3>
    <ul class="logInfoList">
      <li>
        <label>用户名</label>
        <input name="paramMap.account" id="account" type="text" />
      </li>
      <li>
        <label>密码</label>
        <input type="password" name="paramMap.password" id="password" />
      </li>
      <li>
        <label>验证码</label>
        <input type="text" class="captcha" name ="paramMap.rankNum" id="rankInput" maxlength="4"/>   <img id="serialNum" border="0" src="<%=request.getContextPath() %>/img.jsp"/> <a href="javaScript:refreshSerialNum()">看不清</a>  </li>
      <li class="logCtrl">
        <button  type="submit" class="btNor">登录</button>
        <button type="button" onclick="refreshSerialNum();" class="btNor">重填</button>
      </li>
    </ul>
  </div>
</div>
</form>
</body>
</html>

